package net.sk.china.city.talk.request.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 系统管理员 Response 对象
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/3 10:00
 * // +----------------------------------------------------------------------
 */

@Data
public class AdminResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "登录账号")
    private String account;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "权限组ID")
    private String roles;

    @ApiModelProperty(value = "权限名称")
    private String roleNames;

    @ApiModelProperty(value = "最后一次登录的IP")
    private String lastIp;

    @ApiModelProperty(value = "最后一次登录的时间")
    private LocalDateTime lastTime;

    @ApiModelProperty(value = "账号创建时间")
    private Integer addTime;

    @ApiModelProperty(value = "登录次数")
    private Integer loginCount;

    @ApiModelProperty(value = "账号等级")
    private Integer level;

    @ApiModelProperty(value = "账号状态")
    private Boolean status;

    @ApiModelProperty(value = "登录后的TOKEN")
    private String token;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "权限标识数组")
    private List<String> permissionsList;
}
